package priv.ln.field_method.exer1;

/**
 * ClassName: PersonTest
 * Package: priv.ln.field_method.exer1
 * Description:
 *
 * @Author 辣辣
 * @Create 2024/6/17 18:52
 * @Version 1.0
 */
public class PersonTest {
    public static void main(String[] args) {
        Person p = new Person();
        p.name = "tom";
        p.age = 22;
        p.gender = '男';

        p.study();
        System.out.println(p.showAge());
        p.addAge(2);
        System.out.println(p.showAge());

    }
}
